<%@ page import="com.pixiv.Entity.User" %>
<%@ page import="com.pixiv.MysqlDAO.UserLoginDAO" %><%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2021/11/10
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>个人信息</title>
    <link rel = "stylesheet" href = "css/phase1.css">
    <link rel = "stylesheet" href = "${pageContext.request.contextPath}/common/layui/css/layui.css">
    <script src = "${pageContext.request.contextPath}/common/jquery3.6.0.js"></script>
    <script src = "${pageContext.request.contextPath}/common/layui/layui.js"></script>
</head>
<body>
<div id = "head_test_0">
    <%
        User u = (User) session.getAttribute("GLOBAL_USER_OBJECT");
        if (u != null || u.getUserID() < 0)
        {
            UserLoginDAO.initLoginUserData(u);
        }
    %>

    <div>
        <div>
            <img style = "float:left;" src = "" width = "39px" height = "39px">
            <div style = "line-height:49px;float:left;"></div>
        </div>
        <div>
            <input type = "text" id = "searchInfo">
        </div>
        <div>
            <input type = "button" style = "width:125px;height:39px;
                       border:0px;border-radius:39px;float:left;margin-left:15px;" value = "投稿" id = "upPictureToTarget">
            <img src = "/pixiv/PixivUserIconServlet?appType=getUserIcon" id = "UserIconDisplay">
            <div style = "float:left;margin-left:15px;"><%out.write(u.getName());%></div>
            <div style = "margin-left:5px;background-color:rgba(0,0,0,0.1);width:39px;height:39px;float:left;"></div>
        </div>
    </div>

</div>


<style type = "text/css">
    #content_test_1
    {
        width:100%;
        position:relative;
        left:0%;
        top:0px;
        height:600px;
        background-color:ghostwhite;
        border:1px solid red;
        overflow:hidden;
    }

    /*用户头像控件调整*/
    #UserIconDisplay{
        margin-left:5px;
        width:39px;
        height:39px;
        border:0px solid red;
        background-color:blanchedalmond;
        border-radius:39px;
        float:left;
        cursor:pointer;
    }

    /*查找信息*/
    #searchInfo{
        margin-left:100px;
        margin-right:100px;
        width:40%;
        height:39px;
        float:left;
        border:0px;
    }

</style>
</body>
</html>
